﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Domain.Entities;

namespace ERP.ERPModels.RepositoryManage
{
    /// <summary>
    /// 装箱管理
    /// </summary>
    public class Packing:Entity<int>
    {
        /// <summary>
        /// 订单编码
        /// </summary>
        public string? OrderCode { get; set; }

        /// <summary>
        /// 装箱单编号
        /// </summary>
        public string PackingCode { get; set; } = null!;

        /// <summary>
        /// 装箱日期
        /// </summary>
        public DateTime? PackingDate { get; set; }

        /// <summary>
        /// 销售订单编号
        /// </summary>
        public string? SaleOrderCode { get; set; }

        /// <summary>
        /// 发票编号
        /// </summary>
        public string? InvoiceCode { get; set; }

        /// <summary>
        /// 客户编码
        /// </summary>
        public string? CustomerCode { get; set; }

        /// <summary>
        /// 产品编码
        /// </summary>
        public string? ProductCode { get; set; }

        /// <summary>
        /// 箱长
        /// </summary>
        public string? PackingLength { get; set; }

        /// <summary>
        /// 箱宽
        /// </summary>
        public string? PackingWidth { get; set; }

        /// <summary>
        /// 箱高
        /// </summary>
        public string? PackingHeight { get; set; }

        /// <summary>
        /// 净重
        /// </summary>
        public string? NetWeight { get; set; }

        /// <summary>
        /// 毛重
        /// </summary>
        public string? GrossWeight { get; set; }

        /// <summary>
        /// 单位重量
        /// </summary>
        public string? UnitWeight { get; set; }

        /// <summary>
        /// 检查员
        /// </summary>
        public string? Inspector { get; set; }

        /// <summary>
        /// 状态 (0:草稿 1:已完成)
        /// </summary>
        public string? State { get; set; }

        /// <summary>
        /// 父级装箱ID (用于树形结构)
        /// </summary>
        public int? ParentId { get; set; }
    }
}
